﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WastedMechanics
{
    public class Item
    {        
        static int UniqueSerialId = 0;

        public String Name;
        public String SpriteMaterial;
        public float Weight;
        public float Value;
        public int SerialId;
        public bool IsWorn;

        public DescribedProfile Profile;

        public Item()
        {
            UniqueSerialId++;
            SerialId = UniqueSerialId;
        }

        public Item Clone()
        {
            Item newItem = (Item)MemberwiseClone();
            newItem.SerialId = UniqueSerialId++;
            return newItem;
        }

        public Described CreateGameObject()
        {            
            return Engine.ObjectManager.NewDescribed(this);
        }
    }
}
